package com.example.factory.api.facade;

import com.example.factory.api.dto.DtoDepartment;
import com.example.factory.api.dto.Response;
import com.example.factory.api.dto.form.DtoDepartmentForm;
import com.example.factory.api.dto.form.DtoQueryDepartmentListForm;

import java.util.List;

/**
 * @author Lei Tao
 */
public interface DepartmentFacade {
    Response<List<DtoDepartment>> departmentList(DtoQueryDepartmentListForm dtoQueryDepartmentListForm);

    Response<DtoDepartment> saveOrUpdateDepartment(DtoDepartmentForm dtoDepartmentForm);

    Response<Void> deleteDepartment(String departmentGuid);

    Response<DtoDepartment> retrieveDepartment(String departmentGuid);
}
